const mongoose = require('mongoose');

//第一个参数是地址,
mongoose.connect("mongodb://127.0.0.1:27017/adv_0331",()=>{
    console.log("数据库连接成功");
})